package com.ecoolex.hotel.saas.ws;

import java.util.Map;

import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import com.ecoolex.framework.common.exception.BizException;
import com.ecoolex.hotel.saas.core.service.WeChatPayService;
import com.ecoolex.hotel.saas.entity.PresaleCouponOrder;

@Service
public class PaymentOrderServiceImpl implements PaymentOrderService{
	
	@Autowired
	private WeChatPayService weChatPayService;

	@Override
	public Map weChatPayApply(PresaleCouponOrder order, String appId, String ipAdress, String createUser) throws BizException {
		return weChatPayService.payApply(order, appId, ipAdress, createUser);
	}

	@Override
	public String weChatPayOrderNotify(String body, String createUser) {
		return weChatPayService.payNotify(body, createUser);
	}

	@Override
	public String weChatPayRefundNotify(String body, String createUser) {
		return weChatPayService.refundNotify(body, createUser);
	}

}
